package com.huawei.games.impl;

import com.huawei.games.ResultOperation;
import com.huawei.result.Result;
public class ResultOperationImpl implements ResultOperation{
    @Override
    public Result rockPaperScissorsByPersonWin() {
        Result result = new Result();
        result.setUserWin(result.getUserWin() + 1);
        result.setComputerLosses(result.getComputerLosses() + 1);
        return result;
    }
    @Override
    public Result rockPaperScissorsByComputerWin() {
        Result result = new Result();
        result.setUserLosses(result.getUserWin() + 1);
        result.setComputerWin(result.getComputerLosses() + 1);
        return result;
    }
    @Override
    public Result rockPaperScissorsByPersonAndComputerDraws() {
        Result result = new Result();
        result.setUserDraws(result.getUserDraws() + 1);
        result.setComputerDraws(result.getComputerDraws() + 1);
        return result;
    }
}
